qui(
    function (require, exports, module) {
        live2VOD.Dao = $.extend({}, EpgWeb.Dao, {
            cfgName:{
               // getSourceIp:"getSourceIp"
            },

            getChannelType:function(handler){
                var ajaxOptions={
                    type:"post",
                    url:EpgWeb.urlConfig.redirect,
                    dataType:"json",
                    data:  {"request": JSON.stringify({url:  live2VOD.Constant.thirdUrl_channel_type, type: "get", params:{size:100} , needCookie: true}), timeSign: new Date().getTime()},
                    success: function (data) {
                        var formatData = [];
                        $.each(data.data,function(i,element){
                            formatData.push({id:element.id,label:element.name,value:element.name})
                        })
                        handler(formatData);
                        console.log("renderPanel happen");
                    },
                    error:function(data){
                        console.log("error happen");
                    }
                };
                $.ajax(ajaxOptions)
            },
            getList: function (data, callback) {
                var options = {
                    type: "get",
                    url: live2VOD.urlConfig.findUrl,
                    dataType: "json",
                    data: data,
                    success: function (data) {
                        callback.call(this, data);
                    },
                    error: function (data) {
                        callback.call(this, data);
                    }
                }
                Ancestor.Dao.ajax(options);
            },
            delChannel:function(data,callback){
                var options = {
                    type: "get",
                    url: live2VOD.urlConfig.delUrl,
                    dataType: "json",
                    data: data,
                    success: function (data) {
                        callback.call(this, data);
                    },
                    error: function (data) {
                        callback.call(this, data);
                    }
                }
                Ancestor.Dao.ajax(options);
            },
            modifyChannel:function(data,callback){
                var options = {
                    type: "get",
                    url: live2VOD.urlConfig.modifyUrl,
                    dataType: "json",
                    data: data,
                    success: function (data) {
                        callback.call(this, data);
                    },
                    error: function (data) {
                        callback.call(this, data);
                    }
                }
                Ancestor.Dao.ajax(options);
            },
            addChannel:function(data,callback){
                var options = {
                    type: "get",
                    url: live2VOD.urlConfig.addUrl,
                    dataType: "json",
                    data: data,
                    success: function (data) {
                        callback.call(this, data);
                    },
                    error: function (data) {
                        callback.call(this, data);
                    }
                }
                Ancestor.Dao.ajax(options);
            }
        })
    }
);